package com.wmz.result;

import lombok.*;

/**
 * @author wmz
 * @date 2024/2/15 22:23
 * @description CodeEnum
 */
@Getter
@RequiredArgsConstructor
@NoArgsConstructor
@AllArgsConstructor
public enum CodeEnum {
    OK(200,"成功"),
    FAIL(500,"失败"),
    LOGIN_JWT_IS_EMPTY(901,"请求jwt为空"),
    LOGIN_JWT_IS_ILLEGAL(902,"请求jwt不合法"),
    LOGIN_JWT_IS_EXPIRE(903,"请求jwt已过期"),
    LOGIN_JWT_NO_MATCH(904,"请求jwt不正确"),
    USER_LOGOUT(200,"退出成功"),
    DATA_ACCESS_EXCEPTION(500,"数据库操作失败"),
            ;
    //结果码
    private int code;
    @NonNull
    //结果信息
    private String msg;
}
